Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #17397: Fully export instrument changes to MusicXML #24932

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rettinghaus
Copy link
Contributor

This PR adds full export of instrument changes to MusicXML support.

Closes #17397.

NB: Import currently doesn't change the instrument name yet, so this has to be adjested for fully working round-trips of import and export.

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 26, 2024
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 26, 2024
}
m_xml.endElement();

writeInstrumentDetails(instrChange->instrument(), m_score->style().styleB(Sid::concertPitch));
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz Sep 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using instr here too, like a few lines down?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review! Actually found another thing that lead to invalid MusicXML output. Fixed that one, too.

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 26, 2024
Backport of musescore#24932 and enable and fix testMultiInstrumentPart3.
Also fixing some clang warnings.
const int instNr = muse::value(m_instrMap, instr, -1);
const string longName = instr->nameAsPlainText();
const string shortName = instr->abbreviatureAsPlainText();
static const std::wregex acc(L"[♭♯]");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable?

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 26, 2024
Backport of musescore#24932 and enable and fix testMultiInstrumentPart3.
Also fixing some clang warnings.
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 27, 2024
Backport of musescore#24932 and enable and fix testMultiInstrumentPart3.
Also fixing some clazy warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Musicxml Export] - Instrument change still not exported
3 participants